package com.woniuxy.business.mapper;

import com.woniuxy.entity.BusinessInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BusinessInfoMapper {
    //添加企业信息
    void insertBusinessInfo(BusinessInfo businessInfo);
    //根据企业名字查询企业
    BusinessInfo selectBusinessInfoByBusinessName(String business_name);
    //查询所有企业
    List<BusinessInfo> selectAllBusinessInfo(@Param("business_name")String business_name,
                                             @Param("pageIndex")int pageIndex,@Param("pageSize")int pageSize);
    //根据企业名字删除企业
    void deleteBusinessInfo(String business_name);

    //根据id查询企业
    BusinessInfo selectBusinessInfoById(int id);
}
